#pragma once

class CTTSWrapper
{
public:
    CTTSWrapper(void);
    ~CTTSWrapper(void);

public:
    BOOL Init();

    BOOL SetVoiceRateByValue(LPCWSTR lpstrSpeaker, LPCTSTR lpstrSpeed = NULL);

    HRESULT Speak(LPCWSTR lpwText, DWORD dwFlags=SPF_ASYNC);

    HRESULT SpeakAndWait(LPCWSTR lpwText, BOOL bWait=TRUE);
 
    void StopSpeak();

    void SetWomanVoiceToZn();

    void SetManVoiceToEn();

    void SetWomanVoiceToEn();

public:
    CComPtr<ISpVoice> m_cpVoice;
    TCHAR m_szErrorInfo[512];
};
